home *** CD-ROM | disk | FTP | other *** search
/ EuroCD 3 / EuroCD 3.iso / Programming / Amos / AMOSList-0497 / AMOSLIST / 000016_amos-request@svcs1.digex.net_Fri Apr 4 12:14:02 1997.msg < prev    next >
Text File  |  1998-06-24  |  3KB  |  87 lines

  1. Received: from svcs1.digex.net (svcs1.digex.net [204.91.197.224])
  2.     by mail3.access.digex.net (8.8.5/8.8.5) with ESMTP id MAA29553
  3.     for <mcox@access.digex.net>; Fri, 4 Apr 1997 12:14:02 -0500 (EST)
  4. Received: (from daemon@localhost)
  5.     by svcs1.digex.net (8.8.5/8.8.5) id JAA25486
  6.     for amos-out; Fri, 4 Apr 1997 09:31:11 -0500 (EST)
  7. Received: from mail1.access.digex.net (mail1.access.digex.net [205.197.247.2])
  8.     by svcs1.digex.net (8.8.5/8.8.5) with ESMTP id JAA25478
  9.     for <amos-list@svcs1.digex.net>; Fri, 4 Apr 1997 09:31:09 -0500 (EST)
  10. Received: from relay-7.mail.demon.net (relay-7.mail.demon.net [194.217.242.9])
  11.     by mail1.access.digex.net (8.8.5/8.8.5) with SMTP id JAA08880
  12.     for <amos-list@access.digex.net>; Fri, 4 Apr 1997 09:31:07 -0500 (EST)
  13. Received: from mirex.demon.co.uk ([158.152.68.125]) by relay-6.mail.demon.net
  14.            id ad0614384; 4 Apr 97 15:23 BST
  15. Received: by mirex.demon.co.uk (V1.16/Amiga)
  16.     id AA006a7; Fri, 4 Apr 97 01:33:40 GMT
  17. Date: Fri, 4 Apr 97 01:33:40 GMT
  18. Message-Id: <9704040133.AA006a2@mirex.demon.co.uk>
  19. Message-Id: <24381b71.u8t20e.d9cf2-Braneloc@mirex.demon.co.uk>
  20. In-Reply-To: <199704031225.EAA08388@f9.hotmail.com>
  21.          (from "Jamie B" <jamieb5@hotmail.com>)
  22.          (at Thu, 03 Apr 1997 04:25:11 PST)
  23. Organization: Mirex Software
  24. Reply-To: Braneloc@mirex.demon.co.uk
  25. Website: http://www.mirex.demon.co.uk
  26. From: Keith Hill <Braneloc@mirex.demon.co.uk>
  27. To: jamieb5@hotmail.com
  28. Cc: amos-list@access.digex.net
  29. Subject: Re: Just plain Subjects
  30. Status: RO
  31. X-Status: 
  32.  
  33. To the one known as Jamie,
  34.  
  35. > Okay, I'm not going to brag on about anything... All I want to know
  36. > is how to use normaly inputs and take "BITS" from it, and make it
  37. > NON case sensative...
  38. >   So if I took say this:
  39. >  Eat the cow
  40. >  And the cow didn't exist, it should say:
  41. >  There is no cow to eat.
  42. >  I don't know ho to do that normally...
  43. >  Also: Case sensetive etc:
  44. >  I want this:
  45. >      HELLO
  46. >  To be the same as this:
  47. >      HeLlO
  48.  
  49. Case sensitive is the easy bit, use Upper$ to convert it to upper case for
  50. manageability, then split them into different words.  Now things get really
  51. difficult.  EAT & COW is fairly straight forward, but you need to take into
  52. account all your objects that are edible, and all the command words you are
  53. using, related to other command words and objects, so each thing relates to
  54. another thing, so to EAT your COW, you would probably need a FORK or a
  55. DEAD-COW.  
  56.  
  57. There are two main ways of working out EAT the COW, one is extensive
  58. programming on a per-location basis, and the other is with huge databases,
  59. but to start you off, here is some code to split up your input.
  60.  
  61. dim split$(10):rem 10 words max.
  62. line input a$ :rem nasty input.
  63. a$=upper$(a$)
  64. c=1
  65. for n=1 to len(a$)
  66.     z$=mid$(a$,n,1)
  67.     if z$=" "
  68.         c=c+1
  69.     else
  70.         split$(c)=split$(c)+z$
  71.     end if
  72. next
  73.  
  74. (end of code)
  75.  
  76. split$(1)="EAT"
  77. split$(2)="THE"
  78. split$(3)="COW"
  79.  
  80. ..let me know if you  need more help/code.
  81.  
  82.  _   _   _        _     _   _     |  
  83. |_> |_| |_| |\ | |_ |  | | /   |  |  "Would you like a Jellybaby ?"
  84. |_> | \ | | | \| |_ |_ |_| \_  .  |        - The Doctor
  85.                                   |
  86.                     --------------+---------------
  87.                      http://www.mirex.demon.co.uk